package main

import (
	"io/ioutil"
	"fmt"
)

func main() {
	str := "Hello, world!"
	err := ioutil.WriteFile("./hello.txt", []byte(str), 0644)
	if err!= nil {
		fmt.Println("Error:", err)
	}
}